<?php
namespace Admin\Model;
use \Think\Model;
class CategoryModel extends Model
{
	protected $fields = array ('id','name','pid','path','display');
	protected $pk = 'id';
	protected $_validate = array (
			array('name','','分类名称已存在',2,'unique',1),
			array('name','require','分类名不能为空'),

		);
}